package com.serviceImpl;

import com.javabean.SysLog;
import com.mapper.SysLogMapper;
import com.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @Author: 张波
 * @Time: 2025/8/29 11:18
 */
@Service
public class SysLogServiceImpl implements SysLogService {
	@Autowired
	SysLogMapper sysLogMapper;
	@Override
	public List<SysLog> findAll() {
		return sysLogMapper.selectAll();
	}
	@Override
	public void add(SysLog syslog) {
		sysLogMapper.insertSysLog(syslog);
	}

	@Override
	public List<SysLog> findAll(String username, String url) {
		return sysLogMapper.selectLikeUsernameAndUrl(username, url);
	}
}
